package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SyDeptDao;
import cn.com.bdqn.entity.SyDept;
import cn.com.bdqn.service.SyDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyDeptServiceImpl implements SyDeptService {

    @Autowired
    private SyDeptDao dao;

    @Override
    public List<SyDept> queryAll() {
        return dao.queryAll();
    }

    @Override
    public SyDept queryById(Long id) {
        return dao.queryById(id);
    }

    @Override
    public int updateSyDept(SyDept syDept) {
        return dao.updateSyDept(syDept);
    }

    @Override
    public int delSyDept(Long id) {
        return dao.delSyDept(id);
    }

    @Override
    public int addSyDept(SyDept syDept) {
        return dao.addSyDept(syDept);
    }
}
